CC = gcc
CFLAGS += -c -Wall -g

all: seqList mergeSeqList

seqList: seqList.o seqListBasicOps.o
	$(CC) $^ -o $@

mergeSeqList: mergeSeqList.o seqListBasicOps.o
	$(CC) $^ -o $@

seqListBasicOps.o: seqListBasicOps.c
	$(CC) $^ $(CFLAGS) -o $@

mergeSeqList.o: mergeSeqList.c
	$(CC) $^ $(CFLAGS) -o $@

seqList.o: seqList.c
	$(CC) $^ $(CFLAGS) -o $@

clean:
	$(RM) -r *.o seqList mergeSeqList